function Searchcourse() {
	var nickname=$("#nickname").val();
	var introduce=$("#introduce").val();
}
	window.onload=function(){
		var cook = getCookie('userId');
		// 动态生成数据
		/*$.ajax({
			url:'http://localhost:8080/baiZeAdmin/Uinformation/pingshen',
			type:'post',
			dataType:'json',
			data:{'type':2,'status':2,'nickname':nickname,'introduce':introduce},
			success:function(data){	
				console.log(data);
				if(data.code==200){
					var _msg = data.message.reviewPaintinglist;
					// 初始化数据
					var oTitle = '',
					oPicWork = '',
					oScore = '',
					oTime = '',
					oWid = '';
					oStuName = '',
					oStuId = '';
					oStuPic = '';				
					var html = '';

					for(var i=0;i<_msg.length;i++){
						var list = document.getElementsByClassName("list")[0];
						var	oitem = document.createElement("li");
						oitem.className = "item";
						oitem.setAttribute("data-num","0");
						oTitle = _msg[i].introduce;
						oPicWork = _msg[i].changepaintingURL;
						oScore = _msg[i].sccore;
						oWid = _msg[i].id;
						// 格式化时间
						var date = dateFormat(_msg[i].releasedate,'yyyy-mm-dd hh:mm:ss');
						var nowDate = new Date();

						if(nowDate.getDate()==date.date&&(nowDate.getMonth()+1)==date.month&&nowDate.getFullYear()==date.year){
							if(date.hours==nowDate.getHours()){
								oTime = (nowDate.getMinutes()-parseInt(date.minutes))+'分钟前';
							}else{
								oTime = (parseInt(nowDate.getHours())-parseInt(date.hours))+'小时前';
							}
							
						}else{
							oTime = date.month+'月'+date.date+'日';
						}
						oStuName = _msg[i].student.nickname;
						oStuId = _msg[i].student.userId;
						oStuPic = _msg[i].student.avatar;					
						html =	'<div class="f-left">'
						        +'<img class="lworkpic w-'+oWid+'" src='+DEFPIC.DEFPIC+'>'
								+'<p class="fen">'+oScore+'</p></div>'
								+'<div class="f-right">'
								+'<p class="miao">'+oTitle+'</p>'
								+'<div class="stu">'
								+'<div class="tou">'
								+'<img class="s-'+oStuId+'" src='+DEFPIC.DEFHEADPIC+' >'
								+'</div>'
								+'<div class="ren">'
								+'<p>求评审学生</p>'
								+'<p style="color:#bbb;">'+oStuName+'</p>'
								+ '</div> </div>'
								+'<div class="f-time">'
								+'<span>发布时间:</span>'
								+'<span>'+oTime+'</span>'
								+'</div></div>';
						oitem.innerHTML = html;
						list.appendChild(oitem);
						loadImg('w-'+oWid,oPicWork);
						loadImg('s-'+oStuId,oStuPic);
						for(i=0;i<item.length;i++){
							item[i].index = i;
						} 
					}
				}
			},
			error:function(err){
				console.log(err);
			}
		});*/
		// 遍历每一张图片
		var view = document.getElementsByClassName('view')[0];
		var item = document.getElementsByClassName("item");
		var list = document.getElementsByClassName('list'); 
		var meng = document.getElementById("meng");
		var inAdd = 0;
		for(i=0;i<item.length;i++){
			item[i].index=i;
		}
		/*$('.list').on('click','.item',function(e) {
			var index = this.index;
			var onum = $(this).attr('data-num');
			if(onum == "0"){
				view.style.display='block';
				meng.style.display='block';
				$(this).attr('data-num','1');
			}else{
				view.style.display='none';
				meng.style.display='none';
				$(this).attr('data-num','0');
			}
			//中间输入框title的偏移量  
			var ow = this.offsetWidth-(view.offsetWidth/2);
			console.log(ow);
			var offsetLeft= this.offsetLeft-ow;
			console.log(offsetLeft);
			var offsetTop=this.offsetTop+(this.offsetHeight/5);
			view.style.top=offsetTop+'px';
			
			if(offsetLeft<0){
				view.style.left='170px';    		
			}else{
				view.style.left=offsetLeft+'px';
			}
		}); */
		$("#meng").on('click',function(){   	
			view.style.display='none';
			meng.style.display="none";
			$(item[inAdd]).attr('data-num','0');
		})
	}

